<!--src/main/resources/templates/user/add.html-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新增用户</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/addstyles.css}">
</head>
<body>
<h2>新增用户</h2>
<form th:action="@{/user/save}" method="post">
    <label for="id">用户编号:</label>
    <input type="text" id="id" name="id" readonly="readonly"><br>
    <label for="email">邮箱地址:</label>
    <input type="text" id="email" name="email" required><br>
    <label for="info">个人介绍:</label>
    <input type="text" id="info" name="info"><br>
    <label for="password">用户密码:</label>
    <input type="text" id="password" name="password" required><br>
    <label for="phone">电话号码:</label>
    <input type="text" id="phone" name="phone"><br>
    <label for="qq">QQ号码:</label>
    <input type="text" id="qq" name="qq"><br>
    <label for="username">用户名称:</label>
    <input type="text" id="username" name="username" required><br>
    <button type="submit">注册</button>
    <a th:href="@{/user/findAll}" class="cancel-btn">取消</a>
</form>
</body>
</html>
